class MoveQuestionVisibilityToQuestion < ActiveRecord::Migration
  
  def self.up
    remove_column :question_texts, :visible
    
    add_column :questions, :applies_to_xb, :boolean, :default => true
    add_column :questions, :applies_to_cc, :boolean, :default => true
    add_column :questions, :applies_to_sc, :boolean, :default => true
  end

  def self.down
    add_column :question_texts, :visible, :boolean, :default => true
  
    remove_column :questions, :applies_to_xb
    remove_column :questions, :applies_to_cc
    remove_column :questions, :applies_to_sc
  end
end
